﻿<%@ Page Title="Theo dõi thao tác người dùng" Language="C#" MasterPageFile="~/App_MasterPages/Aquarius.Master"
    AutoEventWireup="true" CodeBehind="SysChangeLogPage.aspx.cs" Inherits="PanasonicWarranty.UI.SysChangeLogPage"  %>

<%@ Register Src="../UserControl/ucPaging.ascx" TagName="ucPaging" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CssContent" runat="server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ScriptContent" runat="server">
    <script type="text/javascript">
        $(document).ready(function () {
            RegisterDialog();
            ComboBox("ddlSearchAccount");
        });
    </script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <div class="row-fluid">
    <div class="span12">
        <div class="head">
            <div class="isw-grid"></div>
            <h1>Danh sách tương tác dữ liệu</h1>
            <div class="clear"></div>
        </div>
        <div class="block-fluid table-sorting">
            <div class="dataTables_wrapper" id="tSortable_wrapper">
                <div class="dataTables_length" style="width: 550px">
                        User
                        <asp:DropDownList ID="ddlSearchAccount" size="1" aria-controls="tSortable"  runat="server" AutoPostBack = "true"
                         onselectedindexchanged="ddlSearchAccount_SelectedIndexChanged" />&nbsp; &nbsp;
                    &nbsp; &nbsp;&nbsp;&nbsp;
                        Hiển thị
                        <asp:DropDownList ID="tSortable_length" size="1" aria-controls="tSortable" runat="server"
                            OnSelectedIndexChanged="tSortable_length_SelectedIndexChanged" AutoPostBack="true" Width="60px">
                            <asp:ListItem Value="5" />
                            <asp:ListItem Value="10" />
                            <asp:ListItem Value="25" />
                            <asp:ListItem Value="50" Selected="True" />
                            <asp:ListItem Value="100" />
                            <asp:ListItem Value="200" />
                            <asp:ListItem Value="250" />
                            <asp:ListItem Value="300" />
                        </asp:DropDownList>
                        dòng
                </div>
                <div>
                    <uc1:ucPaging ID="pagingtop" runat="server" Visible="false" />
                </div>
                <asp:GridView ID="grvData" CssClass="table2 dataTable" runat="server" 
                    AutoGenerateColumns="false" Width="100%" ShowHeaderWhenEmpty="true" EnableViewState="false">
                    <Columns>
                        <asp:TemplateField HeaderText="STT" ItemStyle-CssClass="STT">
                            <ItemTemplate>
                                <%#(Container.DataItemIndex + 1) + (pagingtop.CurrentPage - 1) * pagingtop.PageSize%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Tài khoản" ItemStyle-CssClass="width1">
                            <ItemTemplate>
                                <%#SysUser.GetName(Eval("UserID"))%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="Hành động" DataField="Action" />
                        <asp:BoundField HeaderText="Ngày tháng" DataField="ActionDate" ItemStyle-CssClass="DateTime2" DataFormatString="{0:dd/MM/yyyy HH:mm:ss}" />
                        <asp:BoundField HeaderText="Địa chỉ Ip" DataField="IpAddress"  ItemStyle-CssClass="DateTime2"/>
                    </Columns>
                </asp:GridView>
                <div class="dataTables_info" id="tSortable_info">
                    <asp:Literal ID="ltrInfo" runat="server" />
                </div>
                <div class="dataTables_paginate paging_full_numbers" id="tSortable_paginate">
                    <uc1:ucPaging ID="pagingbottom" runat="server" Visible="false" />
                </div>
            </div>
            <div class="clear">
            </div>
        </div>
    </div>
    </div>
</asp:Content>
